-- GENERATED SPELL FOR [Warbringer Razuun] --


function spell0_21287(pUnit, Event) --@Fel Fireball,n/a--
pUnit:FullCastSpellOnTarget(35913,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21287', 3000, 1)
end

function spell1_21287(pUnit, Event) --@Mind Warp,n/a--
pUnit:FullCastSpellOnTarget(38047,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21287', 10000, 1)
end

function Sorts_21287(pUnit, Event)
local choix_sorts_21287 = math.random(0, 1)
if choix_sorts_21287 == 0 then
pUnit:RegisterEvent('spell0_21287', 1, 1)
end
if choix_sorts_21287 == 1 then
pUnit:RegisterEvent('spell1_21287', 1, 1)
end
end

function mob21287_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21287', math.random(1500, 3000), 1)
end

function mob21287_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21287_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21287_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21287, 1, 'mob21287_Action')
RegisterUnitEvent(21287, 2, 'mob21287_Leave')
RegisterUnitEvent(21287, 3, 'mob21287_Kill')
RegisterUnitEvent(21287, 4, 'mob21287_Die')
